Skip to content

Commit 6e41aba

Browse files
Use f-strings wherever possible (#3102)
1 parent 9898841 commit 6e41aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codespell_lib/_codespell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def parse_file(
952952

953953
if options.write_changes and fix:
954954
changed = True
955-
lines[i] = re.sub(r"\b%s\b" % word, fixword, lines[i])
955+
lines[i] = re.sub(rf"\b{word}\b", fixword, lines[i])
956956
fixed_words.add(word)
957957
continue
958958

0 commit comments

Comments
 (0)